package com.itliuhouse.success.domain.vo;

import com.itliuhouse.success.enums.UserStatus;
import com.itliuhouse.success.pojo.UserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

//查询的返回结果

@Data
@ApiModel(description = "用户VO实体")
public class UserVO {
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    //为了让页面的返回结果也以对象的格式返回,我们需要修改UserVO中的info字段 为 UserInfo 功能
    @ApiModelProperty("详细信息")
    private UserInfo info;

    @ApiModelProperty("使用状态(1,正常  2冻结)")
    private UserStatus status;

    @ApiModelProperty("账户余额")
    private Integer balance;

    @ApiModelProperty("收货地址列表")
    private List<AddressVO> addresses;

}
